package com.googlecode.yoohoo.xmppcore;

import java.util.ArrayList;
import java.util.List;

import com.googlecode.yoohoo.config.DefaultConfigManager;
import com.googlecode.yoohoo.config.OptionDescription;

public class ConfigManager extends DefaultConfigManager {
	public static final String KEY_ERROR_ATTACH_SENDER_XML = "error.attach.sender.xml";
	public static final String KEY_DEFAULT_CONNECTION_TIMEOUT = "default.connection.timeout";

	@Override
	protected List<OptionDescription> getOptionDescriptions() {
		List<OptionDescription> optionDescriptions = new ArrayList<OptionDescription>();
		optionDescriptions.add(new OptionDescription(KEY_DEFAULT_CONNECTION_TIMEOUT, Integer.class, 60 * 5));
		optionDescriptions.add(new OptionDescription(KEY_ERROR_ATTACH_SENDER_XML, Boolean.class, false));

		return optionDescriptions;
	}
}
